/*
 * @Author: Hugh Xie
 * @Date: 2022-03-01 12:41:40
 * @LastEditors: Hugh Xie
 * @LastEditTime: 2022-05-07 10:00:35
 * @FilePath: \frontend\src\api\module\student\student-bop-manage.js
 */
import request from '../../request'
const Api = {
	page: '/api/adminstu/stuInfo/page',
	remove: '/api/adminstu/stuBusp/remove',
	save:'/api/adminstu/stuInfo/save',
	selectById:'/api/adminstu/stuInfo/getById',
  update:'/api/adminstu/stuInfo/update',

  followSave: '/api/adminstu/stuInfo/addStuInfoFollowUp',
  followPage: '/api/adminstu/stuInfo/getStuInfoFollowUp',

  template: '/api/adminstu/down/template/stuInfo',
  imports: '/api/adminstu/down/template/stuImport',
}
export const page = data => {
    return request.request({
        url: Api.page,
        params: data,
        method: 'GET'
    })
}
export const followPage = data => {
    return request.request({
        url: Api.followPage,
        params: data,
        method: 'GET'
    })
}
export const followSave = data => {
    return request.request({
        url: Api.followSave,
        data,
        method: 'POST'
    })
}
export const remove = params => {
  return request.request({
    url: Api.remove,
    params,
    method: 'DELETE'
  })
}
export const save = data => {
    return request.request({
        url: Api.save,
        data,
        method: 'POST'
    })
}
export const selectById = data => {
    return request.request({
        url: Api.selectById,
        params: data,
        method: 'GET'
    })
}
export const update = data => {
  return request.request({
    url: Api.update,
    data,
    method: 'POST'
  })
}

/** 文件导入 */
export const imports = data => {
  return request.request({
    url: Api.imports,
    data,
    method: 'post'
  })
}
export const templateUrl = Api.template